import { GET, POST } from '@/utils'


enum API {
    ADD_DEPARTMENT_API = '/addDepartment',
    DELETE_DEPARTMENT_API = '/deleteDepartment',
    QUERY_DEPARTMENT_API = '/queryDepartment',


    QUERY_WARD_API = '/queryIllArea',
    ADD_WARD_API = '/addIllArea',
    DELETE_WARD_API = '/deleteIllArea',

}

export const addDepartment = (data: any) => POST(API.ADD_DEPARTMENT_API, data, false)
export const deleteDepartment = (data: any) => POST(API.DELETE_DEPARTMENT_API, data, true)
export const queryDepartment = (data: any) => POST(API.QUERY_DEPARTMENT_API, data, false)

export const queryWardApi = (data: any) => POST(API.QUERY_WARD_API, data, false)
export const addWardApi = (data: any) => POST(API.ADD_WARD_API, data, false)
export const deleteWardApi = (data: any) => POST(API.DELETE_WARD_API, data, true)